Creating a Quantity
Description
To create a new quantity in the Model Tree:
Select the position in a Declaration Section where the new quantity should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Quantity and press OK
Press <Enter> to select a pre-defined SI quantity using the Quantity wizard, or enter your own quantity name and press <Enter>.
The quantity wizard displays a set of predefined AIMMS SI quantities. When selecting a quantity in the quantity wizard, the BASE UNIT
attribute and the COMMENT
attribute are filled with common choices corresponding to the selected quantity (e.g. the base unit of the quantity ‘SI_Length’ will be set to ‘m’). To specify the attributes of the newly created quantity, you should
Press
<Enter>
or double click on the quantity.
The most commonly used attributes of a quantity are discussed below.
BASE UNIT
: TheBASE UNIT
attribute is mandatory and is used to specify the base unit for the current quantity. All internal AIMMS and case data are expressed in terms of the base unit. For this reason the base unit should be chosen to the unit in which most model quantities are measured. For example, if all lengths in your model are measured in terms of[km]
, you are advised to make[km]
the base unit of the quantity ‘Length’ (instead of[m]
). Thewizard will display a list of all units that are commensurate with the current base unit.
CONVERSION
: TheCONVERSION
attribute is used to specify derived units. For any derived unit, you must specify a linear relation between the derived unit and the base unit. Thewizard will display a dialog box containing a number of predefined conversions (for the common SI quantities). The wizard will also help you specify new conversions.
How to …
Learn more about